﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Coldairarrow.Business.Goods;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;

namespace Coldairarrow.Api.Controllers.backstage
{
    [Route("/backstage/[controller]/[action]")]
        public class BKS_WarehouseController : BaseApiController
        {
            public BKS_WarehouseController(IBTB_GoodsBusiness bTB_GoodsBus)
            {
                _bTB_GoodsBus = bTB_GoodsBus;
            }
            IBTB_GoodsBusiness _bTB_GoodsBus { get; }

        /// <summary>
        /// 指定查询
        /// </summary>
        /// <param name="idInput">商品id</param>
        /// <returns></returns>
        [HttpPost]
        public object GetTheData(IdInputDTO idInput)
        {
            return _bTB_GoodsBus.GetTheData(idInput.id);
        }
    }
}
